package com.timoon.testng.service;

import java.util.HashMap;
import java.util.Map;

import org.springframework.beans.factory.BeanFactory;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;

import com.timoon.sample.dao.RoleDAOImpl;

public class ServiceTest {

	private static BeanFactory factory;
	
	@BeforeClass
	public static void initFactory(){
		factory=new ClassPathXmlApplicationContext("applicationContext.xml");
	}
	
	@Test
	public void roleService(){
		RoleDAOImpl dao=(RoleDAOImpl) factory.getBean("roleDAOImpl");
		Map map=new HashMap();
		//JqGridService service=(JqGridService) factory.getBean("com.flt.sample.role.RoleJqGridServiceImpl");
		
	}
}
